package com.ruoyi.web.controller.ai;

import com.ruoyi.ai.service.IPyMessageService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ai")
public class AiController extends BaseController {


    @Resource
    private IPyMessageService pyMessageService;


    @GetMapping("sendMessage")
    public AjaxResult sendMessage(@RequestParam String question) {
        return pyMessageService.sendMessage(question);
    }
}
